package cn.lili.modules.promotion.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("li_green_commonweal_contribution")
@ApiModel(value = "绿色公益项目捐赠记录")
public class GreenCommonwealContribution extends BaseStandardEntity {
    @ApiModelProperty(value = "捐赠用户ID")
    private String userId;
    @ApiModelProperty(value = "捐赠用户飞语openID")
    private String openId;
    @ApiModelProperty(value = "捐赠金额")
    private BigDecimal contributionMoney;
    @ApiModelProperty(value = "类型：0支出、1收入")
    private Integer contributionType;
    @ApiModelProperty(value = "活动描述")
    private String remarks;
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    @ApiModelProperty(value = "0捐赠中、1捐赠成功、2捐赠失败")
    private Integer status;

    @ApiModelProperty(value = "捐赠类型：0商品购买、1用户捐赠")
    private Integer gcType;

    @ApiModelProperty(value = "格式化日期")
    @TableField(exist = false)
    private String createDate;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private Date endTime;
    @ApiModelProperty(value = "捐赠用户名")
    private String userName;

    @TableField(exist = false)
    private Integer type;
}
